<?php

class ClearClassCacheController extends Controller
{
	public function Index()
	{
		$res = new stdClass();
		$res->was_cache_clared = false;
		
		try
		{
			$loader = Autoload::getInstance( APPCACHE_PATH . SLASH . 'classes.yml' );
			$loader->removeCache();
			$res->was_cache_clared = true;
		}
		catch (Exception $exeption)
		{
			$res->exeption = $exeption;
		}
		
		return View($res);
	}
}

?>
